-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Rainmaker library extension #6813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is needed for mode parameters (see example RMakerCustomAirCooler.ino).
The changes you have done to the files in |
Hi @me-no-dev! I don't know exactly how the workflow is from the ESP-IDF or Rainmaker repository to the arduino-esp32 repository. Can this current pull request stay until the changes are applied to the Rainmaker / ESP-IDF repository, or is there a better way? |
yup :) I've turned it into draft for now. |
For tracking: PR in espressif/esp-rainmaker#126 |
Hi @me-no-dev The PR in espressif/esp-rainmaker#126 has been merged. |
Hi @sivar2311, thanks for letting me know. I have updated the lib-builder and generated the new libs. They are currently here and will soon be merged into master in preparation for 2.0.4 release. Please revert the changes to the headers in the "sdk" folder of this pull request as those will now come from the component itself through the lib builder. Also please squash the commits. I will run CI and merge as soon as we merge the IDF updates. |
Hi @me-no-dev ! Off-topic: |
This repository contains the ESP-IDF project and scripts that build ESP-IDF, collect and copy everything necessary to Arduino: https://github.com/espressif/esp32-arduino-lib-builder |
@me-no-dev Thanks for the information about the esp32-arduino-lib-builder. |
@@ -47,5 +47,6 @@ class Param | |||
esp_err_t addUIType(const char *ui_type); | |||
esp_err_t addBounds(param_val_t min, param_val_t max, param_val_t step); | |||
esp_err_t updateAndReport(param_val_t val); | |||
esp_err_t addValidStrList(const char** str_list); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your function declaration does not match the implementation. In the implementation you have two arguments: const char **string_list, uint8_t count
. Probably you missed the second one.
@sivar2311 note that the target branch has changed to |
Sorry for the inconvenience, this is embarrassing. I already had the error during development and I had already fixed it - but probably only in my local platform directory (PlatformIO) which is used for the build process. Unfortunately I was not able to get PlattformIO to use my local copy of the Arduino-ESP32 repository for the build process. I have fixed the bug in #0cb567d
Okay, that makes sense :) Do I need to change anything on my side? |
Seems you have some other errors: https://github.com/espressif/arduino-esp32/runs/6875362072?check_suite_focus=true#step:5:164
No, you should be ok as-is, just make sure you have updated your fork |
The definition was missing for the ESP32C3 target. This is fixed now in #de53f6f Thanks for your patience :) |
@sivar2311 everything looks good now :) will merge before 2.0.4 release |
Yeayyy |
Description of Change
This PR extends the ESP Rainmaker functionality.
value
function with parameter typeconst char*
to prevent a compiler warning with this type.addValidStrList
added to Param class. This is required for using a Mode parameter.This is the Arduino version of the example from the chapter Building Custom Devices / 3rd Party Integrations.
Tests scenarios
I have tested my Pull Request on Arduino-esp32 core v2.0.3 with esp32doit-devkit-v1 Board with the new provided RMakerCustomDeviceAirCooler example.